package com.steakliu.sun.registry.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.commons.lang3.ObjectUtils;

/**
 * 功能说明：
 * <p>
 * Original @Author: steakliu-刘牌, 2023-01-07  22:48
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
public class RegistryConfig {
    private String loadBalance;
    private String registryAddress;

    public RegistryConfig( String registryAddress) {
        if (ObjectUtils.isEmpty(registryAddress)){
            throw new RuntimeException("Registry center address cannot be empty!");
        }
        this.registryAddress = registryAddress;
    }

    public String getLoadBalance() {
        return loadBalance;
    }

    public void setLoadBalance(String loadBalance) {
        this.loadBalance = loadBalance;
    }

    public String getRegistryAddress() {
        return registryAddress;
    }

    public void setRegistryAddress(String registryAddress) {
        this.registryAddress = registryAddress;
    }
}
